﻿using System;
using System.Diagnostics;

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("请输入你有几门课，最多三门");
            int course = int.Parse(Console.ReadLine());
            if (course == 1)
            {
                Console.WriteLine("请输入你的成绩");
                int a = int.Parse(Console.ReadLine());
                Book book = new Book(a);
             
            }
            else if (course == 2)
            {
                Console.WriteLine("请输入你的第一门成绩");
                int a = int.Parse(Console.ReadLine());
                Console.WriteLine("请输入你的第二门成绩");
                int b = int.Parse(Console.ReadLine());
                Book book = new Book(a,b);

            }
            else if (course == 3)
            {
                Console.WriteLine("请输入你的第一门成绩");
                int a = int.Parse(Console.ReadLine());
                Console.WriteLine("请输入你的第二门成绩");
                int b = int.Parse(Console.ReadLine());
                Console.WriteLine("请输入你的第三门成绩");
                int c = int.Parse(Console.ReadLine());
                Book book = new Book(a,b,c);
            }
            else
            {
                Console.WriteLine("哥哥，请认真审题");
            }
            Book book1 = new Book('男',"小明",3,1,9.5);
            book1.Print();

            Book book2 = new Book('男',"胡哥");
            book2.Print();

            Book book3 = new Book('娚');
            book3.Print();
            
            
        }
    }

}



